import request from '@/utils/request'

// 查询预案要素内容列表
export function listItemcontent(query) {
  return request({
    url: '/pla/itemcontent/list',
    method: 'get',
    params: query
  })
}

// 查询预案要素内容详细
export function getItemcontent(plaitemcontentid) {
  return request({
    url: '/pla/itemcontent/' + plaitemcontentid,
    method: 'get'
  })
}

// 新增预案要素内容
export function addItemcontent(data) {
  return request({
    url: '/pla/itemcontent',
    method: 'post',
    data: data
  })
}

// 修改预案要素内容
export function updateItemcontent(data) {
  return request({
    url: '/pla/itemcontent',
    method: 'put',
    data: data
  })
}

// 删除预案要素内容
export function delItemcontent(plaitemcontentid) {
  return request({
    url: '/pla/itemcontent/' + plaitemcontentid,
    method: 'delete'
  })
}
